from aip import AipOcr


class OCRClient:
    def __init__(self):
        self.APP_ID = '你的 App ID'
        self.API_KEY = '你的 Api Key'
        self.SECRET_KEY = '你的 Secret Key'

        self.client = AipOcr(self.APP_ID, self.API_KEY, self.SECRET_KEY)

    def ocr_url(self, url: str):
        res_url = self.client.basicGeneralUrl(url)
        return res_url
